<?php
// +----------------------------------------------------------------------
// | title: 标题注释
// +----------------------------------------------------------------------
// | Author: TZ.Leong
// +----------------------------------------------------------------------
// | Date: 2020/8/6 17:18
// +----------------------------------------------------------------------

namespace app\single\api;


use think\Db;

class XianyuStore
{
    public function run($params)
    {
        $response["ret"] = 1;
        $sDate = date("Ymd", strtotime($params["sDate"]));
        $eDate = date("Ymd", strtotime($params["eDate"]));
        $response["data"] = Db::table("c_xianyu_store")
            ->whereBetween("day", [$sDate, $eDate])
            ->field("id", true)
            ->select();
        return $response;
    }
}